home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / 3DTOSHI2.ZIP / mpgfx / source / gfxdisp.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-25  |  1.1 KB  |  51 lines

  1.  
  2.  
  3. // gfxdisp.cpp
  4.  
  5.  
  6.  
  7. #include "stdgfx.h"
  8.  
  9. #include "gfxdisp.h"
  10.  
  11.  
  12.  
  13. DISPLAYDRIVER::DISPLAYDRIVER () : DRIVER ()
  14.  
  15.   {
  16.  
  17.     MagH = 1;  
  18.  
  19.     DivH = 1;  
  20.  
  21.     MagV = 1;  
  22.  
  23.     DivV = 1;  
  24.  
  25.     Info = (BITMAPINFO*)malloc(sizeof(BITMAPINFOHEADER)+sizeof(RGBQUAD)*256);
  26.  
  27.   } // End of Constructor for DISPLAYDRIVER
  28.  
  29.  
  30.  
  31. DISPLAYDRIVER::~DISPLAYDRIVER ()
  32.  
  33.   {
  34.  
  35.     if (Info!=NULL)
  36.  
  37.       delete Info;
  38.  
  39.     Info = NULL;
  40.  
  41.   } // End of Destructor for DISPLAYDRIVER
  42.  
  43.  
  44.  
  45. VOID DISPLAYDRIVER::Clear ( HDISPLAY hDisplay, LONG Color )
  46.  
  47.   {
  48.  
  49.     if (hDisplay)
  50.  
  51.       {}
  52.  
  53.     if (Color)
  54.  
  55.       {}
  56.  
  57.   } // End of Clear for DISPLAYDRIVER
  58.  
  59.  
  60.  
  61. VOID DISPLAYDRIVER::SetScaleFactor ( LONG MH, LONG DH, LONG MV, LONG DV )
  62.  
  63.   {
  64.  
  65.     MagH = MH;  
  66.  
  67.     DivH = DH;  
  68.  
  69.     MagV = MV;  
  70.  
  71.     DivV = DV;  
  72.  
  73.   } // End of SetScaleFactor for DISPLAYDRIVER
  74.  
  75.   
  76.  
  77. VOID DISPLAYDRIVER::DrawText ( HDISPLAY hDisplay, STRING Text, LONG x, LONG y,
  78.  
  79.                                COLOR Color )
  80.  
  81.   {
  82.  
  83.     if (hDisplay)
  84.  
  85.       {}
  86.  
  87.     if (Text)
  88.  
  89.       {}
  90.  
  91.     if (Color)
  92.  
  93.       {}
  94.  
  95.     if (x&y)
  96.  
  97.       {}
  98.  
  99.   } // End of DrawText for DISPLAYDRIVER
  100.  
  101.